<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<script type="text/javascript">
<!--
	$(function(){
		$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
        $('#source_id').formValidator({onshow:"请选择来源",onfocus:"请选择来源",oncorrect:"<?php echo L('right_all')?>"}).inputValidator({min:1,onerror:"请选择来源"});		
	})
//-->
</script>
<div class="pad-lr-10">
<form action="?m=reg_child&c=manage&a=permission_add" method="post" id="myform">
	<table width="100%"  class="table_form">
        <tr>
        <th width="120">来源：</th>
        <td class="y-bg">
            <?php echo form::select($sourceList,'',' name="source_id" id="source_id" ','请选择')?>
        </td>
        </tr>
        <?php foreach($role as $v){?>
        <tr>
        <th width="120"><?php echo $v['name']?>：</th>
        <td class="y-bg">
        <?php foreach($v['user_list'] as $vo){?>
            <input type="checkbox" name="user_id[]" value="<?=$vo['userid']?>" ><?=$vo['realname']?>
        <?php }?>
        </td>
        </tr>
        <?php }?>
    </table>
<div class="bk15"></div>
    <input type="submit" class="dialog" id="dosubmit" name="dosubmit" value="<?php echo L('submit');?>" />
</form>
</div>
<script language="JavaScript">
<!--

	//-->
</script>
</body>
</html>